<template>
	<view class="box h-20vh">
		<view class="content">
			<up-image :show-loading="true" :src="userInfo.user.avator" width="20vw" height="20vw" @click="click"
			:lazy-load="true" radius="1vw"></up-image>
			<view class="userId">
				<view class="username">
					{{userInfo.user.username}}
				</view>
				<view class="account">
					账号： {{userInfo.user.account}}
				</view>
			</view>
		</view>
	</view>
	<up-line ></up-line>
</template>

<script setup>
	import { useUserInfo } from '../../../store';
	const userInfo = useUserInfo()
	
	console.log(userInfo.user)
</script>

<style lang="scss" scoped>
	.box{
		background-color: #fff;
		padding-top: 0;
		display: flex;
		justify-content: center;
		align-items: center;
		.content{
			// margin: auto;
			width: 90vw;
			display: flex;
			.userId{
				margin-left: 5vw;
				.username{
					color: #2c2c2c;
					font-size: 1.5rem;
					font-weight: bolder;
				}
				.account{
					color: #2c2c2c;
					margin-top: 1vh;
				}
			}
		}
	}
</style>